import type { AppRouteModule } from '@/router/types';

import { LAYOUT } from '@/router/constant';

/**
 * 机构管理
 */
const platform: AppRouteModule = {
  path: '/message',
  name: 'Message',
  component: LAYOUT,
  redirect: '/message/templateList',
  meta: {
    orderNo: 15,
    icon: 'carbon:version',
    title: '消息通知模板',
  },
  children: [
    {
      path: 'templateList',
      name: 'TemplateList',
      component: () => import('@/views/message/template/list/index.vue'),
      meta: {
        title: '消息模板',
      },
    },
    {
      path: 'smsAccountConfiguration',
      name: 'smsAccountConfiguration',
      component: () => import('@/views/message/smsAccountConfiguration/index.vue'),
      meta: {
        title: '短信账户配置',
      },
    },
    {
      path: 'informationAdd',
      name: 'InformationAdd',
      component: () => import('@/views/message/template/add/informationAdd.vue'),
      meta: {
        title: '新建短信模板',
        hideMenu: true,
      },
    },
    {
      path: 'informationEdit',
      name: 'InformationEdit',
      component: () => import('@/views/message/template/edit/informationEdit.vue'),
      meta: {
        title: '编辑短信模板',
        hideMenu: true,
      },
    },
    {
      path: 'officialEdit',
      name: 'OfficialEdit',
      component: () => import('@/views/message/template/edit/officialEdit.vue'),
      meta: {
        title: '编辑微信模板',
        hideMenu: true,
      },
    },
  ],
};

export default platform;
